using System;
using System.Collections.Generic;
using System.Text;
namespace BE
{
	public class ZD_DM_LOAIVATTU: BusinessObjectBase
	{

		#region InnerClass
		public enum ZD_DM_LOAIVATTUFields
		{
			ID,
			MALOAI,
			TENLOAI,
			GHICHU,
			MOTA
		}
		#endregion

		#region Data Members

			long _iD;
			string _mALOAI;
			string _tENLOAI;
			string _gHICHU;
			string _mOTA;

		#endregion

		#region Properties

		public long  ID
		{
			 get { return _iD; }
			 set
			 {
				 if (_iD != value)
				 {
					_iD = value;
				 }
			 }
		}

		public string  MALOAI
		{
			 get { return _mALOAI; }
			 set
			 {
				 if (_mALOAI != value)
				 {
					_mALOAI = value;
				 }
			 }
		}

		public string  TENLOAI
		{
			 get { return _tENLOAI; }
			 set
			 {
				 if (_tENLOAI != value)
				 {
					_tENLOAI = value;
				 }
			 }
		}

		public string  GHICHU
		{
			 get { return _gHICHU; }
			 set
			 {
				 if (_gHICHU != value)
				 {
					_gHICHU = value;
				 }
			 }
		}

		public string  MOTA
		{
			 get { return _mOTA; }
			 set
			 {
				 if (_mOTA != value)
				 {
					_mOTA = value;
				 }
			 }
		}


		#endregion

		#region Validation

		internal override void AddValidationRules()
		{
			ValidationRules.AddRules(new Validation.ValidateRuleNotNull("ID", "ID"));
			ValidationRules.AddRules(new Validation.ValidateRuleNotNull("MALOAI", "MALOAI"));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("MALOAI", "MALOAI",30));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("TENLOAI", "TENLOAI",50));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("GHICHU", "GHICHU",100));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("MOTA", "MOTA",50));
		}

		#endregion

	}
}
